package com.aaa.cs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (Maintain)实体类
 *
 * @author makejava
 * @since 2020-11-18 16:30:40
 */
public class Maintain implements Serializable {
    private static final long serialVersionUID = -96969194899141026L;
    /**
     * 维修厂表
     */
    private Integer id;

    private String name;

    private String address;

    private String phoneNum;

    private Integer carid;

    @DateTimeFormat(pattern="yyyy-MM-dd")//处理接收参数
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")//返回实体，处理成JSON所遵循的规则
    private Date addtime;

    private String remark;

    @Override
    public String toString() {
        return "Maintain{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", phoneNum=" + phoneNum +
                ", addtime=" + addtime +
                ", remark=" + remark +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getremark() {
        return remark;
    }

    public void setremark(String remark) {
        this.remark = remark;
    }

}